package fangboss.com.exception;

/**
 * <pre>
 *   自定义异常、业务异常
 * </pre>
 * Created by sirius on 2018/9/19.
 *
 * @author sirius
 * @since 1.0
 */
public class BusinessException extends Exception {

    private String code;
    private String message;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String code, String message) {
        super(message);
        this.message = message;
        this.code = code;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
